i=InStr(s,",") ' We're only interested in the stuff after the comma, so we get rid of the left hand side.
s=Right(s,len(s)-i)
if s=Setting then ' If what we've retrieved is the same as what we were expecting, then we set the UI elephant to true.
Call SetUIElement(Num,true)
end if
else
' The prefs files may only be written on first launch or be corrupted, so if the item
' can't be found, we let the user know.
Call MsgWarning("X-Setup encountered an error while trying to retrieve the settings. This may be because you have not run Mozilla yet, or the preferences are corrupted. Please run Mozilla, or reinstall it.")
Call Disable()
end if
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
' Yup, we need this again... Though since the plugin would already be disabled if it